package com.dxx.cloud.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dxx.cloud.admin.module.entity.CustomerCart;
import com.dxx.cloud.admin.module.entity.GoodsSizeEntity;
import com.dxx.cloud.admin.module.request.GoodsSizeAddRequest;
import com.dxx.cloud.admin.module.request.GoodsSizeListRequest;
import com.dxx.cloud.admin.module.response.CustomerCartResponse;
import com.dxx.cloud.admin.module.response.GoodsSizeResponse;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 商品规格 服务类
 * </p>
 *
 * @author dh
 * @since 2025-06-06
 */
public interface IGoodsSizeService extends IService<GoodsSizeEntity> {

    List<GoodsSizeResponse> goodsSizeResponseList(GoodsSizeListRequest request);
    List<GoodsSizeResponse> goodsSizeResponseList(Long goodsId);

    List<GoodsSizeResponse> listResponseByIds(List<Long> ids);

    List<GoodsSizeResponse> listByName(String name);

    List<CustomerCartResponse> customerAdd2CartList(Serializable customerId);

    boolean add2Cart(CustomerCart request);

    boolean updateCart(CustomerCart request);

    Long addSize(GoodsSizeAddRequest request);

    boolean onSellSwitch(GoodsSizeEntity request);
}
